package com.dingding.gmall.product.feign;

import com.dingding.gmall.common.dto.SkuRedutionDTO;
import com.dingding.gmall.common.dto.SpuBoundDTO;
import com.dingding.gmall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("gmall-coupon")
public interface CouponFeignService {

    /**
     * 发送数据
     * @param spuBoundDTO
     */
    @RequestMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundDTO spuBoundDTO);

    @PostMapping("/coupon/skufullreduction/saveinfo")
    R saveSkuRedution(@RequestBody SkuRedutionDTO skuRedutionDTO);


}
